package base;

import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Administrator on 2017/9/11.
 */
public interface IBaseMapperWithBLOBs<Record extends IBaseEntity,RecordWithBLOBs extends Record,Example> extends  IBaseMapper<Record,RecordWithBLOBs,Example>  {

    List<RecordWithBLOBs> selectByExampleWithBLOBs(Example example) throws Exception;

    int updateByExampleWithBLOBs(@Param("record") RecordWithBLOBs record, @Param("example") Example example) throws Exception;

    int updateByPrimaryKeyWithBLOBs(RecordWithBLOBs record) throws Exception;



}

















//    //返回类型不同
//    RecordWithBLOBs selectByPrimaryKey(String pk) throws Exception;
//
//    /*
//    六个重复 */
//    int countByExample(Example example) throws Exception;
//
//    int deleteByExample(Example example) throws Exception;
//
//    int deleteByPrimaryKey(String pk) throws Exception;
//
//    List<Record> selectByExample(Example example) throws Exception;
//
//    int updateByExample(@Param("record") Record record, @Param("example") Example example) throws Exception;
//
//    int updateByPrimaryKey(Record record) throws Exception;
//
//
//    /*
//    冲突 四个参数名称有继承关系 */
//    int insert(RecordWithBLOBs record) throws Exception;
//
//    int insertSelective(RecordWithBLOBs record) throws Exception;
//
//    int updateByExampleSelective(@Param("record") RecordWithBLOBs record, @Param("example") Example example) throws Exception;
//
//    int updateByPrimaryKeySelective(RecordWithBLOBs record) throws Exception;
//


